<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";

	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
	}

	.u-radio__icon-wrap--checked {
		color: #fff;
		background-color: #2979ff !important;
		border-color: #2979ff !important;
	}
</style>

<script>
	import {
		checkToUpdateAPP
	} from "./utils/common.js"
	export default {
		data() {
			return {
				version: 100,
				platform: 'android'
			}
		},
		onLaunch: function() {
			
			// #ifdef APP-PLUS  
			const _self = this;
			checkToUpdateAPP(true)
			// const _handlePush = function(message) { 
			// 	console.log(message);
			// 	let payload = message.payload
			// 	if(payload){
			// 		payload = JSON.parse(payload)
			// 		console.log(payload);
			// 		if(payload.billType){
			// 			let url = `/pages/order_detail/type_${payload.billType}?orderId=${payload.orderId}&status=0&billId=${payload.billId}`
			// 			uni.navigateTo({  
			// 				url: url,
			// 				success: (info) => {
			// 					console.log(info);
			// 				},
			// 				fail: (err) => {
			// 					console.log(err);
			// 				}
			// 			});
			// 		}
			// 	}
			// };  
			// plus.push.addEventListener('click', _handlePush);  
			// plus.push.addEventListener('receive', _handlePush);  
			// #endif  
		},
		onShow: function() {
			//console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		},
		methods: {

		}

	}
</script>
